/*
 * AnalyzedImage.cpp
 *
 *  Created on: 10/09/2011
 *      Author: solnox
 */

#include "AnalyzedImage.h"
#include "ImageAnalyzer.h"
using namespace cv;

AnalyzedImage::AnalyzedImage() {
}

AnalyzedImage::AnalyzedImage(cv::Mat * image_ptr) {
	if(image_ptr != NULL)
	{
		rgb_image = *image_ptr;
		cvtColor(rgb_image, bw_image, CV_RGB2GRAY);

		ImageAnalyzer::getInstance().detectKeyPoints(bw_image, keypoints) ;
		ImageAnalyzer::getInstance().computeDescriptors(bw_image,keypoints,desc);
		mask = Mat::ones(rgb_image.rows,rgb_image.cols,CV_8UC1);
	}
}

AnalyzedImage::~AnalyzedImage() {
}
